-- GENERATED SPELL FOR [Stonetusk Boar] --


function spell0_113(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_113', 675, 1)
end

function spell1_113(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(35290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_113', 0, 1)
end

function spell2_113(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_113', 0, 1)
end

function spell3_113(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_113', 3000, 1)
end

function Sorts_113(pUnit, Event)
local choix_sorts_113 = math.random(0, 3)
if choix_sorts_113 == 0 then
pUnit:RegisterEvent('spell0_113', 1, 1)
end
if choix_sorts_113 == 1 then
pUnit:RegisterEvent('spell1_113', 1, 1)
end
if choix_sorts_113 == 2 then
pUnit:RegisterEvent('spell2_113', 1, 1)
end
if choix_sorts_113 == 3 then
pUnit:RegisterEvent('spell3_113', 1, 1)
end
end

function mob113_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_113', math.random(1500, 3000), 1)
end

function mob113_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob113_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob113_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(113, 1, 'mob113_Action')
RegisterUnitEvent(113, 2, 'mob113_Leave')
RegisterUnitEvent(113, 3, 'mob113_Kill')
RegisterUnitEvent(113, 4, 'mob113_Die')
